package smcms.service.sso.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import smcms.service.sso.entity.*;

import java.util.List;

@Mapper
public interface AccountMapper {

    AccountReq getAccountByUsername(String username);

    List<SysMenuResp> hasMenu(String username);

    void userRegister(AccountReq accountReq);

    void addCloud(CloudInfoReq req);

    void grantRole(UserRoleRel userRoleRel);

    StaffInfoResp getUserInfo(StaffInfoReq staffInfoReq);

    List<StaffInfoResp> getStaffList(@Param("idList") List<String> idList);

    void updateUserInfo(StaffInfoReq staffInfoReq);

    List<Permissions> queryPermissionByUsername(String username);

    List<CloudStoreInfo> queryCloudStore(String username);
}
